﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Boshii.Map.Bll.Common;
using Boshii.Map.DAL.POI;
using Boshii.Map.Model;

namespace Boshii.Map.Bll.POI
{
    public class PoiBll:BllBase
    {
        public void GetAllMyPOI(PoiDs ds)
        {
            using (PoiDal dal = new PoiDal())
            {
                dal.GetAllMyPOI(ds);
            }
        }


        public void GetMyPOI(PoiDs ds, int poiID)
        {
            using (PoiDal dal = new PoiDal())
            {
                dal.GetMyPOI(ds, poiID);
            }
        }


        public void GetMyPOIByWhere(PoiDs ds, string where)
        {
            using (PoiDal dal = new PoiDal())
            {
                dal.GetMyPOIByWhere(ds, where);
            }
        }


        public void GetMyPOIByWhere(PoiDs ds, string where, string orderBy, int pageIndex, int pageSize)
        {
            using (PoiDal dal = new PoiDal())
            {
                dal.GetMyPOIByWhere(ds, where, orderBy, pageIndex, pageSize);
            }
        }


        public int GetMyPOICountByWhere(string where)
        {
            using (PoiDal dal = new PoiDal())
            {
                return dal.GetMyPOICountByWhere(where);
            }
        }


        public int UpdateMyPOI(PoiDs ds)
        {
            using (PoiDal dal = new PoiDal())
            {
                return dal.UpdateMyPOI(ds);
            }
        }
    }
}
